package com.dianping.cat.consumer.matrix.model.entity;

import com.dianping.cat.consumer.matrix.model.BaseEntity;
import com.dianping.cat.consumer.matrix.model.IVisitor;









public class Ratio
  extends BaseEntity<Ratio>
{
  private String m_type;
  private int m_min;
  private int m_max;
  private int m_totalCount;
  private long m_totalTime;
  private String m_url;

  public Ratio() {}

/*  26 */   public Ratio(String type) { this.m_type = type; }




  public void accept(IVisitor visitor) { visitor.visitRatio(this); }



  public boolean equals(Object obj) {
    if (obj instanceof Ratio) {
/*  37 */       Ratio _o = (Ratio)obj;

/*  39 */       if (!equals(getType(), _o.getType())) {
/*  40 */         return false;
      }

/*  43 */       return true;
    }

/*  46 */     return false;
  }


/*  50 */   public int getMax() { return this.m_max; }



/*  54 */   public int getMin() { return this.m_min; }



/*  58 */   public int getTotalCount() { return this.m_totalCount; }



/*  62 */   public long getTotalTime() { return this.m_totalTime; }



/*  66 */   public String getType() { return this.m_type; }



/*  70 */   public String getUrl() { return this.m_url; }



  public Ratio incTotalCount() {
/*  83 */     this.m_totalCount++;
/*  84 */     return this;
  }

  public Ratio incTotalCount(int totalCount) {
/*  88 */     this.m_totalCount += totalCount;
/*  89 */     return this;
  }


  public void mergeAttributes(Ratio other) {
/*  94 */     assertAttributeEquals(other, "ratio", "type", this.m_type, other.getType());

/*  96 */     this.m_min = other.getMin();

/*  98 */     this.m_max = other.getMax();

/* 100 */     this.m_totalCount = other.getTotalCount();

/* 102 */     this.m_totalTime = other.getTotalTime();

/* 104 */     if (other.getUrl() != null) {
/* 105 */       this.m_url = other.getUrl();
    }
  }

  public Ratio setMax(int max) {
/* 110 */     this.m_max = max;
/* 111 */     return this;
  }

  public Ratio setMin(int min) {
/* 115 */     this.m_min = min;
/* 116 */     return this;
  }

  public Ratio setTotalCount(int totalCount) {
/* 120 */     this.m_totalCount = totalCount;
/* 121 */     return this;
  }

  public Ratio setTotalTime(long totalTime) {
/* 125 */     this.m_totalTime = totalTime;
/* 126 */     return this;
  }

  public Ratio setType(String type) {
/* 130 */     this.m_type = type;
/* 131 */     return this;
  }

  public Ratio setUrl(String url) {
/* 135 */     this.m_url = url;
/* 136 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/matrix/model/entity/Ratio.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */